package com.peak.distribution.manager.admin.impl;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.peak.distribution.entity.admin.DisSmsTemplate;
import com.peak.distribution.enums.SmsType;
import com.peak.distribution.manager.admin.DisSmsTemplateManager;
import com.peak.spring.boot.core.manager.BaseManagerImpl;

@Component
@Transactional(readOnly = true)
public class DisSmsTemplateManagerImpl extends BaseManagerImpl<DisSmsTemplate> implements DisSmsTemplateManager {

	@Override
	public DisSmsTemplate getTemplateByType(SmsType type) {
		return super.findOne("type", type);
	}

}
